<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <title>首页</title>
    <link rel="stylesheet" href="__PUBLIC__/css/jiazhengindex.css" media="screen" type="text/css" />
    <script type="text/javascript"src="__PUBLIC__/js/jquery-1.12.1.js"></script>
</head>
<body>
<div class="radmenu">
    <a href="#" id="start" class="show">START</a>
    <ul>
        <li>
            <a href="#" class="home">家庭保洁</a>
        </li>
        <li>
            <a href="#"class="company">公司</a>
        </li>
        <li>
            <a href="#" class="child">幼儿管理</a>
        </li>
        <li>
            <a href="#" class="mom">母婴服务</a>
        </li>
        <li>
            <a href="#" class="repair">维修</a>
        </li>
        <li>
            <a href="#" class="take">陪护</a>
        </li>
        <li>
            <a href="#" class="mine">我的</a>
        </li>
        <li>
            <a href="#" class=" firstaid">生活急救箱</a>
        </li>
    </ul>
</div>
</body>
</html>
<script>
    document.getElementById("start").onclick = setSelected;

    function setSelected(e) {
        if (this.classList.contains("selected")) {
            this.classList.remove("selected");
            if (!this.parentNode.classList.contains("radmenu")) {
                this.parentNode.parentNode.parentNode.querySelector("a").classList.add("selected")
            } else {
                this.classList.add("show");
            }
        } else {
            this.classList.add("selected");
            if (!this.parentNode.classList.contains("radmenu")) {
                this.parentNode.parentNode.parentNode.querySelector("a").classList.remove("selected")
            } else {
                this.classList.remove("show");
            }
        }
        return false;
    }

    $(function(){
        $(".home").click(function(){
            window.location.href="{:U('cleaningClassification')}";
        });
        $(".company").click(function(){
            window.location.href="{:U('qingxibaojie')}";
        });
        $(".child").click(function(){
            window.location.href="{:U('childrenManagement')}";
        });
        $(".mom").click(function(){
            window.location.href="{:U('maternalAndInfantServices')}";
        });
        $(".repair").click(function(){
            window.location.href="{:U('repair')}";
        });
        $(".take").click(function(){
            window.location.href="{:U('professionalEscort')}";
        });
        $(".mine").click(function(){
            window.location.href="{:U('my')}";
        });
        $(".firstaid").click(function(){
            window.location.href="{:U('lifeFirstAidKit')}";
        });
    });

</script>